public class ThreadDemo2 {
    public static void main(String[] args) {
        Thread t = new Thread(()->{
            for(int i = 0; i < 3; i++){
                System.out.println(Thread.currentThread().isInterrupted());
                //System.out.println(Thread.interrupted());
            }
        });
        t.start();
        //t.interrupt();
    }
}
